<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:c="http://java.sun.com/jstl/core"
	xmlns:a4j="https://ajax4jsf.dev.java.net/ajax">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>weebill</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
</head>

<body>
<div id="statusDisplayer"><a4j:status>
	<f:facet name="start">
		<h:graphicImage value="/images/ajax_process.gif" />
	</f:facet>
	<f:facet name="stop">
		<h:graphicImage value="/images/ajax_stop.gif" />
	</f:facet>
</a4j:status></div>

<!--top part start -->
<div id="top"><a href="index.html"><img src="images/logo.gif"
	alt="individual" width="286" height="66" border="0" /></a>

<ul>
	<li><a href="#">#{wbtext['topMenu.home']}</a></li>
	<li class="hover">#{wbtext['topMenu.admin']}</li>
	<li><a href="#">#{wbtext['topMenu.help']}</a></li>
</ul>
</div>
<!--top part end -->




<!--body start -->
<div id="body"><br class="spacer" />
<h:form>
	<ul class="nav">
		<li class="navLink"><a4j:commandLink styleClass="users"
			value="#{wbtext['midMenu.users']}" reRender="rightMenu">
			<a4j:actionparam name="rightMenu" value="admUsersMenu.xhtml"
				assignTo="#{userSession.rightMenu}" />
		</a4j:commandLink></li>
		<li class="navLink"><a4j:commandLink styleClass="projects"
			reRender="rightMenu" value="#{wbtext['midMenu.projects']}">
			<a4j:actionparam name="rightMenu" value="admProjectMenu.xhtml"
				assignTo="#{userSession.rightMenu}" />
		</a4j:commandLink></li>
		<li class="navLink"><a4j:commandLink reRender="rightMenu"
			styleClass="system" value="#{wbtext['midMenu.system']}">
			<a4j:actionparam name="rightMenu" value="admAllMenu.xhtml"
				assignTo="#{userSession.rightMenu}" />
		</a4j:commandLink></li>
	</ul>
</h:form> <!--left panel start -->
<div id="left"><ui:insert name="pageIntro"></ui:insert><br />
<br />
<div id="messages"><h:messages globalOnly="true" /></div>
<ui:insert name="mainForm"></ui:insert> <br class="spacer" />
</div>
<!--left panel end --> <!--right panel start -->
<div id="right"><c:choose>

	<c:when test="#{userSession.user==null}">
		<h2 class="mem">#{wbtext['login.form.title']}</h2>
		<h:form id="loginForm">
			<h:inputText id="loginName" class="txtBox"
				value="#{userSession.username}"></h:inputText>
			<h:inputText id="loginPass" class="txtBox"
				value="#{userSession.password}"></h:inputText>
			<h:commandButton id="loginSubmit" value="Login"
				action="#{userSession.login}"></h:commandButton>
			<br class="spacer" />
			<div class="error"><h:message for="loginForm" /></div>
		</h:form>
	</c:when>
	<c:otherwise>
		<h2 class="mem"><h:outputFormat
			value="#{wbtext['login.welcome']}">
			<f:param value="#{userSession.user.lastName}" />
		</h:outputFormat></h2>
	</c:otherwise>
</c:choose>
<p class="bottom2"></p>
<a4j:include viewId="#{userSession.rightMenu}" id="rightMenu" /> <br
	class="spacer" />
</div>
<!--right panel end --> <br class="spacer" />
</div>
<!--body end -->
<!--footer start -->
<div id="footerMain">
<div id="footer"></div>
</div>
<!--footer end -->




<br />



</body>

</html>